package service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import dao.IStoreDao;
import dao.dto.StoreDepositDTO;

@Transactional
@Service
public class MyService {

	@Autowired
	private IStoreDao storeDao;

	public void doSmth() {
		StoreDepositDTO storeDepositDTO = storeDao.getStoreWithDeposit();
		System.out.println(storeDepositDTO.getDepositName());
	}

}
